extends Control

var state = ""

func init(statee:String):
	state = statee
	$"标签/Label".text = state


func _on_标签_mouse_entered():
	var desc = ""
	match state:
		BigStateType.HIDE:
			desc = "潜行：敌方看不到你"
		BigStateType.SHIELD:
			desc = "护盾：免疫一次伤害"
		BigStateType.FEAR:
			desc = "怯战：无法攻击"
		BigStateType.ICE:
			desc = "冰冻：不能行动"
		BigStateType.BURDEN:
			desc = "焦渴：出大、移动、攻击能量消耗+1"
		BigStateType.METHYSIS:
			desc = "中毒：回合结束时受到毒爆伤害，同时感染周围己方大子"
		BigStateType.BLOODTHIRSTY:
			desc = "嗜血：攻击成功后获得1点能量"
		BigStateType.WAVERIDER:
			desc = "踏浪：移动、攻击可以进入河流中"
		BigStateType.FERTILE:
			desc = "旺育：出大能量消耗-1"
		BigStateType.HEROIC:
			desc = "常胜：攻击成功后获得护盾"
	$"../../状态描述".showStateDesc(desc)
